﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using ZhiJiao.Models.Entities;

namespace ZhiJiao.Models
{
    /// <summary>
    /// 会员课程
    /// </summary>
    public class MemberCourse:BaseEntity
    {
        /// <summary>
        /// 所属会员
        /// </summary>
        public Member Member { get; set; }

        /// <summary>
        /// 所属课程
        /// </summary>
        public Course Course { get; set; }

        /// <summary>
        /// 第几节
        /// </summary>
        [Column(TypeName ="int")]
        public int CurrentClass { get; set; }

        /// <summary>
        /// 课程记录
        /// </summary>
        public List<CourseRecord>? CourseRecords { get; set; }


    }
}
